<?php
/**
 * Author: Administrator
 * Date: 2022/7/15 1:15
 */

namespace DesignPatterns\Creation\AbstractFactory;


class JsonFactory extends AbstractFactory
{

    public function createText($content): Json\Text
    {
        return new Json\Text($content);
    }

    public function createPicture($path, $alt = ''): Json\Picture
    {
        return new Json\Picture($path, $alt);
    }
}